PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Dots / martin - beat test pendel sergej shapes only.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=2 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.005 |
| 26 | fWaveScale=0.118 |
| 27 | fWaveSmoothing=0.900 |
| 28 | fWaveParam=-0.480 |
| 29 | fModWaveAlphaStart=0.400 |
| 30 | fModWaveAlphaEnd=1.600 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.800 |
| 45 | wave_g=0.490 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=32 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=17.41885 |
| 83 | wavecode_0_smoothing=0.20000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.000 |
| 88 | wave_0_per_frame1=t1 = 0; |
| 89 | wave_0_per_frame2=t2 = 0; |
| 90 | wave_0_per_frame3=t3 = 0; |
| 91 | wave_0_per_point1=x = sample; |
| 92 | wave_0_per_point2= |
| 93 | wave_0_per_point3=val = (value1 + value2)*10; |
| 94 | wave_0_per_point4=megabuf (t1) = megabuf(t1)*0.5 + val*0.5; |
| 95 | wave_0_per_point5= |
| 96 | wave_0_per_point6=if (val - megabuf(t1) > t3, t3 = val-megabuf(t1), 0); |
| 97 | wave_0_per_point7= |
| 98 | wave_0_per_point8= |
| 99 | wave_0_per_point9=reg00 = t3; y = t3*0.1 + 0.3; |
| 100 | wavecode_1_enabled=0 |
| 101 | wavecode_1_samples=128 |
| 102 | wavecode_1_sep=0 |
| 103 | wavecode_1_bSpectrum=0 |
| 104 | wavecode_1_bUseDots=0 |
| 105 | wavecode_1_bDrawThick=0 |
| 106 | wavecode_1_bAdditive=0 |
| 107 | wavecode_1_scaling=0.89152 |
| 108 | wavecode_1_smoothing=0.82000 |
| 109 | wavecode_1_r=1.000 |
| 110 | wavecode_1_g=1.000 |
| 111 | wavecode_1_b=1.000 |
| 112 | wavecode_1_a=0.100 |
| 113 | wavecode_2_enabled=0 |
| 114 | wavecode_2_samples=32 |
| 115 | wavecode_2_sep=0 |
| 116 | wavecode_2_bSpectrum=0 |
| 117 | wavecode_2_bUseDots=0 |
| 118 | wavecode_2_bDrawThick=0 |
| 119 | wavecode_2_bAdditive=0 |
| 120 | wavecode_2_scaling=0.89152 |
| 121 | wavecode_2_smoothing=0.82000 |
| 122 | wavecode_2_r=0.000 |
| 123 | wavecode_2_g=0.200 |
| 124 | wavecode_2_b=0.600 |
| 125 | wavecode_2_a=1.000 |
| 126 | wavecode_3_enabled=0 |
| 127 | wavecode_3_samples=512 |
| 128 | wavecode_3_sep=0 |
| 129 | wavecode_3_bSpectrum=1 |
| 130 | wavecode_3_bUseDots=1 |
| 131 | wavecode_3_bDrawThick=0 |
| 132 | wavecode_3_bAdditive=0 |
| 133 | wavecode_3_scaling=1.00000 |
| 134 | wavecode_3_smoothing=0.50000 |
| 135 | wavecode_3_r=1.000 |
| 136 | wavecode_3_g=1.000 |
| 137 | wavecode_3_b=1.000 |
| 138 | wavecode_3_a=1.000 |
| 139 | shapecode_0_enabled=1 |
| 140 | shapecode_0_sides=16 |
| 141 | shapecode_0_additive=0 |
| 142 | shapecode_0_thickOutline=1 |
| 143 | shapecode_0_textured=0 |
| 144 | shapecode_0_num_inst=32 |
| 145 | shapecode_0_x=0.500 |
| 146 | shapecode_0_y=0.500 |
| 147 | shapecode_0_rad=0.06598 |
| 148 | shapecode_0_ang=0.00000 |
| 149 | shapecode_0_tex_ang=1.00531 |
| 150 | shapecode_0_tex_zoom=0.12726 |
| 151 | shapecode_0_r=1.000 |
| 152 | shapecode_0_g=1.000 |
| 153 | shapecode_0_b=1.000 |
| 154 | shapecode_0_a=1.000 |
| 155 | shapecode_0_r2=1.000 |
| 156 | shapecode_0_g2=1.000 |
| 157 | shapecode_0_b2=1.000 |
| 158 | shapecode_0_a2=0.300 |
| 159 | shapecode_0_border_r=1.000 |
| 160 | shapecode_0_border_g=1.000 |
| 161 | shapecode_0_border_b=1.000 |
| 162 | shapecode_0_border_a=1.000 |
| 163 | shape_0_per_frame1=copies = 4; |
| 164 | shape_0_per_frame2=num_shapes = reg00; |
| 165 | shape_0_per_frame3=n = int(instance/copies)*num_shapes; |
| 166 | shape_0_per_frame4=frac = (instance%copies)/copies; |
| 167 | shape_0_per_frame5= |
| 168 | shape_0_per_frame6=x = gmegabuf (n) * frac + (1-frac) * megabuf(n); |
| 169 | shape_0_per_frame7=y = gmegabuf (n+1) * frac + (1-frac) * megabuf(n+1); |
| 170 | shape_0_per_frame8= |
| 171 | shape_0_per_frame9= |
| 172 | shape_0_per_frame10=if (instance % copies == copies-1, |
| 173 | shape_0_per_frame11= megabuf (n) = gmegabuf(n); |
| 174 | shape_0_per_frame12= megabuf (n+1) = gmegabuf (n+1); |
| 175 | shape_0_per_frame13=,0); |
| 176 | shape_0_per_frame14= |
| 177 | shape_0_per_frame15= |
| 178 | shape_0_per_frame16=rad = 0.04 * q32; |
| 179 | shape_0_per_frame17=//a = 0; a2 = 0; |
| 180 | shape_0_per_frame18= |
| 181 | shapecode_1_enabled=0 |
| 182 | shapecode_1_sides=14 |
| 183 | shapecode_1_additive=1 |
| 184 | shapecode_1_thickOutline=0 |
| 185 | shapecode_1_textured=0 |
| 186 | shapecode_1_num_inst=11 |
| 187 | shapecode_1_x=0.260 |
| 188 | shapecode_1_y=0.200 |
| 189 | shapecode_1_rad=0.07243 |
| 190 | shapecode_1_ang=0.00000 |
| 191 | shapecode_1_tex_ang=0.00000 |
| 192 | shapecode_1_tex_zoom=0.93550 |
| 193 | shapecode_1_r=1.000 |
| 194 | shapecode_1_g=1.000 |
| 195 | shapecode_1_b=1.000 |
| 196 | shapecode_1_a=1.000 |
| 197 | shapecode_1_r2=1.000 |
| 198 | shapecode_1_g2=1.000 |
| 199 | shapecode_1_b2=1.000 |
| 200 | shapecode_1_a2=1.000 |
| 201 | shapecode_1_border_r=1.000 |
| 202 | shapecode_1_border_g=0.000 |
| 203 | shapecode_1_border_b=0.000 |
| 204 | shapecode_1_border_a=0.000 |
| 205 | shape_1_per_frame1=x = (q7%16)/16; |
| 206 | shape_1_per_frame2=y = instance / 8; |
| 207 | shape_1_per_frame3= |
| 208 | shape_1_per_frame4=if (instance%2==0, x = 1-x,0); |
| 209 | shape_1_per_frame5= |
| 210 | shape_1_per_frame6=//x = sin(3.1416/8*(q7+instance))/3+0.5; |
| 211 | shape_1_per_frame7=//y = sin(3.1416/9*(q7+instance))/3+0.5; |
| 212 | shapecode_2_enabled=0 |
| 213 | shapecode_2_sides=4 |
| 214 | shapecode_2_additive=0 |
| 215 | shapecode_2_thickOutline=0 |
| 216 | shapecode_2_textured=0 |
| 217 | shapecode_2_num_inst=200 |
| 218 | shapecode_2_x=0.650 |
| 219 | shapecode_2_y=0.380 |
| 220 | shapecode_2_rad=0.15640 |
| 221 | shapecode_2_ang=0.00000 |
| 222 | shapecode_2_tex_ang=0.00000 |
| 223 | shapecode_2_tex_zoom=0.73678 |
| 224 | shapecode_2_r=1.000 |
| 225 | shapecode_2_g=1.000 |
| 226 | shapecode_2_b=1.000 |
| 227 | shapecode_2_a=0.700 |
| 228 | shapecode_2_r2=1.000 |
| 229 | shapecode_2_g2=1.000 |
| 230 | shapecode_2_b2=1.000 |
| 231 | shapecode_2_a2=0.000 |
| 232 | shapecode_2_border_r=0.500 |
| 233 | shapecode_2_border_g=0.500 |
| 234 | shapecode_2_border_b=0.000 |
| 235 | shapecode_2_border_a=0.000 |
| 236 | shape_2_per_frame1=x = instance / num_inst * 0.96 + 0.02; |
| 237 | shape_2_per_frame2=x = 0.02 + gmegabuf(8*instance+5000)*0.96/320; |
| 238 | shape_2_per_frame3=y0 = gmegabuf(8*instance + 4+5000) * 0.3; |
| 239 | shape_2_per_frame4=y = 0.05 + y0; |
| 240 | shape_2_per_frame5= |
| 241 | shape_2_per_frame6=rad = 0.015; border_a = 0.8; b = 0; |
| 242 | shape_2_per_frame7=if (q11==instance,rad = 0.05; a = q1;a2 = a; ; b2 = 1;,0); |
| 243 | shape_2_per_frame8= |
| 244 | shape_2_per_frame9= |
| 245 | shapecode_3_enabled=0 |
| 246 | shapecode_3_sides=4 |
| 247 | shapecode_3_additive=1 |
| 248 | shapecode_3_thickOutline=1 |
| 249 | shapecode_3_textured=1 |
| 250 | shapecode_3_num_inst=1 |
| 251 | shapecode_3_x=0.600 |
| 252 | shapecode_3_y=0.550 |
| 253 | shapecode_3_rad=0.17915 |
| 254 | shapecode_3_ang=0.00000 |
| 255 | shapecode_3_tex_ang=0.00000 |
| 256 | shapecode_3_tex_zoom=1.04372 |
| 257 | shapecode_3_r=1.000 |
| 258 | shapecode_3_g=1.000 |
| 259 | shapecode_3_b=0.000 |
| 260 | shapecode_3_a=1.000 |
| 261 | shapecode_3_r2=0.000 |
| 262 | shapecode_3_g2=1.000 |
| 263 | shapecode_3_b2=1.000 |
| 264 | shapecode_3_a2=1.000 |
| 265 | shapecode_3_border_r=1.000 |
| 266 | shapecode_3_border_g=0.800 |
| 267 | shapecode_3_border_b=0.500 |
| 268 | shapecode_3_border_a=0.000 |
| 269 | shape_3_per_frame1=a = 0; a2 = 0; |
| 270 | shape_3_per_frame2=border_a = 1; |
| 271 | per_frame_init_1=n = -10000; loop (20000, megabuf(n)=0; gmegabuf(n)=0; n +=1; ); |
| 272 | per_frame_init_2= |
| 273 | per_frame_init_3=MINBPM = 60; MAXBPM = 320; num_res = 200; |
| 274 | per_frame_init_4=index = 0; |
| 275 | per_frame_init_5=loop (num_res, |
| 276 | per_frame_init_6= n = index*8; |
| 277 | per_frame_init_7= BPM = minbpm * pow(maxbpm/minbpm,index/(num_res-1)); |
| 278 | per_frame_init_8= megabuf(n) = BPM; |
| 279 | per_frame_init_9= index += 1; |
| 280 | per_frame_init_10=); |
| 281 | per_frame_init_11= |
| 282 | per_frame_init_12= |
| 283 | per_frame_init_13=//structure of resonator data, starting at megabuf (0) |
| 284 | per_frame_init_14=//size = 8 |
| 285 | per_frame_init_15=//0: BPM |
| 286 | per_frame_init_16=//1: v |
| 287 | per_frame_init_17=//2: y |
| 288 | per_frame_init_18=//3: amplitude |
| 289 | per_frame_init_19=//4: amplitude after harmonics post processing |
| 290 | per_frame_1=//Martins resonant beat detection - use as it is |
| 291 | per_frame_2=//NOTE: uses megabuf (0) - megabuf (1600) |
| 292 | per_frame_3=//output: is_beat1 and is_beat2; 2:1 or 1:2 |
| 293 | per_frame_4= |
| 294 | per_frame_5=//-------------- Start ---------------------------- |
| 295 | per_frame_6=dt = min (1/fps,0.1) ; //Stability ! |
| 296 | per_frame_7=dec_m = 1 - 4*dt; dec_s = 1 - 1.25*dt; |
| 297 | per_frame_8=vol = max(0.5,bass+mid); |
| 298 | per_frame_9=vol_ = vol_*dec_m + (1-dec_m)*vol; excite = (vol-vol_)/vol_; |
| 299 | per_frame_10=index=0; ratio = log(maxbpm/minbpm); sum_res = 0.01; |
| 300 | per_frame_11=loop (num_res, |
| 301 | per_frame_12= n = index*8; |
| 302 | per_frame_13= omega = megabuf(n) * 6.2832/60; |
| 303 | per_frame_14= megabuf (n+1) *= 1-0.25*dt; //damping |
| 304 | per_frame_15= EC_Steps = int (10*omega*dt)+1; |
| 305 | per_frame_16= loop (EC_Steps, // Euler-Cauchy steps |
| 306 | per_frame_17= megabuf (n+1) += (excite - sqr(omega)*megabuf(n + 2)) * dt/EC_Steps; |
| 307 | per_frame_18= megabuf (n+2) += megabuf(n+1) * dt/EC_Steps); |
| 308 | per_frame_19= beatcos = megabuf(n+1); beatsin = megabuf(n+2)*omega; //2pi/60 |
| 309 | per_frame_20= quad = sqrt (pow(beatsin,2) + pow(beatcos,2)) ; |
| 310 | per_frame_21= megabuf (n+3) = megabuf(n+3) *dec_s + quad* (1-dec_s); |
| 311 | per_frame_22= megabuf (n+4) = megabuf(n+3); |
| 312 | per_frame_23= stage = 2; //Addition d. Harmonischen |
| 313 | per_frame_24= loop (2, |
| 314 | per_frame_25= ind2 = int (0.5 + index + (num_res-1)/ratio*log(stage)); |
| 315 | per_frame_26= if ((ind2 <= num_res), |
| 316 | per_frame_27= n2 = ind2*8; |
| 317 | per_frame_28= A2 = max(max(megabuf(n2+3),megabuf(n2-8+3)),megabuf(n2+8+3)); |
| 318 | per_frame_29= megabuf(n+4) *= 1 + 2/(stage*stage)*A2/(A2+megabuf(n+3)),0); |
| 319 | per_frame_30= stage *= 2; |
| 320 | per_frame_31= ); |
| 321 | per_frame_32= Hyst = 1 + min (0.25, abs (index-maxind)*0.02); |
| 322 | per_frame_33= if (megabuf(n+4) > megabuf (maxind*8+4)*Hyst, maxind = index,0); |
| 323 | per_frame_34= sum_res += megabuf (n+3); |
| 324 | per_frame_35= index += 1; |
| 325 | per_frame_36=); |
| 326 | per_frame_37=certain = megabuf(maxind*8+3)/(sum_res/num_res); |
| 327 | per_frame_38=//Doppelten oder, falls nicht moeglich, halben beat indizieren |
| 328 | per_frame_39=maxind2 = int (0.5 + maxind + (num_res-1)/ratio*log(2)); |
| 329 | per_frame_40=if (maxind2 > num_res, maxind2 = int (0.5 + maxind + (num_res-1)/ratio*log(0.5)),0); |
| 330 | per_frame_41=sig1 = (sig1*dec_m + megabuf(maxind*8+1)*(1-dec_m)) + excite * 0; //check ###### |
| 331 | per_frame_42=is_beat1 = (sig1 > 0) && (sig1_ <= 0); |
| 332 | per_frame_43=sig2 = (sig2 + megabuf(maxind2*8+1))/2 + excite * 0; //check ###### |
| 333 | per_frame_44=is_beat2 = (sig2 > 0) && (sig2_ <= 0); |
| 334 | per_frame_45=fastpace = if (maxind > maxind2, sig1 * sig1_ < 0, sig2 * sig2_ < 0); |
| 335 | per_frame_46=sig1_ = sig1; |
| 336 | per_frame_47=sig2_ = sig2; |
| 337 | per_frame_48=//-------------- End ---------------------------- |
| 338 | per_frame_49=tog1 = sig1 > 0; |
| 339 | per_frame_50=tog2 = sig2 > 0; |
| 340 | per_frame_51=sbeat1 = (sbeat1 + is_beat1)/2; |
| 341 | per_frame_52=sbeat2 = (sbeat2 + is_beat2)/2; |
| 342 | per_frame_53=//fastpace = if (maxind > ind2, is_beat1,is_beat2); |
| 343 | per_frame_54=prog1 = (prog1 + is_beat1) %1024; |
| 344 | per_frame_55=prog2 = (prog2 + is_beat2) %1024; |
| 345 | per_frame_56=prog3 = (prog3 + fastpace) %1024; |
| 346 | per_frame_57= |
| 347 | per_frame_58=maxi = min (maxind, maxind2); |
| 348 | per_frame_59=//maxi = maxind; //#####??? |
| 349 | per_frame_60=trunner = trunner + dt*megabuf (maxi*8)/60*3.1416*2; |
| 350 | per_frame_61=corr = if (push, 0.5*corr + 0.5*cos (trunner), corr*dec_s); |
| 351 | per_frame_62=trunner -= corr * dt; |
| 352 | per_frame_63=trunner_ = dec_s * trunner_ + (1-dec_s)*trunner/2; |
| 353 | per_frame_64= |
| 354 | per_frame_65=q14 = trunner_; |
| 355 | per_frame_66=q15 = cos(trunner_)*(vol_>0.8); |
| 356 | per_frame_67=q16 = sin(trunner_)*(vol_>0.8); |
| 357 | per_frame_68= |
| 358 | per_frame_69=n = 0; loop (2000, gmegabuf(n+5000) = megabuf(n); n += 1); |
| 359 | per_frame_70=q32 = aspecty; |
| 360 | per_frame_71=//-------------------------------------------------------- |
| 361 | per_frame_72=change = is_beat1 && (prog1%32 == 0); |
| 362 | per_frame_73= |
| 363 | per_frame_74=ran1 = if (change, rand (100)/100, ran1); |
| 364 | per_frame_75=ran2 = if (change, rand (100)/100, ran2); |
| 365 | per_frame_76=ran3 = if (change, rand (100)/100, ran3); |
| 366 | per_frame_77=ran4 = if (change, rand (100) >= 30, ran4); |
| 367 | per_frame_78=ran1_ = ran1_ + max(min(ran1-ran1_,0.02),-0.02)*dt*16; |
| 368 | per_frame_79=ran2_ = ran2_ + max(min(ran2-ran2_,0.02),-0.02)*dt*16; |
| 369 | per_frame_80=ran3_ = ran3_ + max(min(ran3-ran3_,0.02),-0.02)*dt*16; |
| 370 | per_frame_81=ran4_ = ran4_ + max(min(ran4-ran4_,0.1),-0.1)*dt*8; |
| 371 | per_frame_82= |
| 372 | per_frame_83=scale = sqrt (certain/4); |
| 373 | per_frame_84=q25 = q15*q16* min (4, num_res / (maxind+1))*0.3* (ran2_-0.5) * scale; |
| 374 | per_frame_85=q26 = -q25; |
| 375 | per_frame_86=q25 += (ran3_-0.5)*q15*0.1*scale; |
| 376 | per_frame_87=q26 += (ran1_-0.5)*q16*0.1*scale; |
| 377 | per_frame_88= |
| 378 | per_frame_89=q2 = prog2; |
| 379 | per_frame_90= |
| 380 | per_frame_91= |
| 381 | per_frame_92=q3 = prog3; |
| 382 | per_frame_93=num_shapes = 8; reg00 = num_shapes; |
| 383 | per_frame_94=recsize = 8; |
| 384 | per_frame_95=scheme = 1; |
| 385 | per_frame_96= |
| 386 | per_frame_97=m = 0; |
| 387 | per_frame_98=loop (num_shapes, |
| 388 | per_frame_99= n = m*num_shapes; |
| 389 | per_frame_100= if (scheme ==1, |
| 390 | per_frame_101= gmegabuf (n) = (m+1) / (num_shapes+1); |
| 391 | per_frame_102= gmegabuf (n) = sin(q14/3.1416*4 * (0.5+ran2) *(m/num_shapes-0.5))*0.45+0.5; |
| 392 | per_frame_103= if (m%2 == 0, gmegabuf (n+1) = 0.5 + 0.8 * max(min(q15*2,1),-1) * (m%2-0.5), |
| 393 | per_frame_104= gmegabuf (n+1) = 0.5 + 0.8 * max(min(if(ran1>0.5,q16,q15)*2,1),-1) * (m%2-0.5)); |
| 394 | per_frame_105= ,0); //end if scheme ==1 |
| 395 | per_frame_106=m += 1; |
| 396 | per_frame_107=); |
| 397 | per_frame_108= |
| 398 | per_frame_109=monitor = q21*q22; |
| 399 | per_frame_110= |
| 400 | per_frame_111=monitor = sig1; |
| 401 | per_pixel_1=zoom = .99; rot = 0; warp = 0; dy = -0.00; dx = 0.00; |
| 402 | per_pixel_2= |
| 403 | per_pixel_3=zoom = 1; dx = 0; dy = 0; |
| 404 | warp_1=`#define sat saturate |
| 405 | warp_2=`sampler sampler_pw_noise_lq; |
| 406 | warp_3=`float3 color, mus; |
| 407 | warp_4=`float2 uv1, uv2, uv3; |
| 408 | warp_5=`float arg, arg2; |
| 409 | warp_6=` |
| 410 | warp_7=`float aTan2(float y, float x) {float angle; float abs_y = abs(y); |
| 411 | warp_8=`if (x >= 0) {float r = (x - abs_y) / (x + abs_y); angle = 1-r;} |
| 412 | warp_9=`else {float r = (x + abs_y) / (abs_y - x); angle = 3-r; } |
| 413 | warp_10=`return y < 0 ? -angle : angle;} |
| 414 | warp_11=` |
| 415 | warp_12=` |
| 416 | warp_13=`shader_body { |
| 417 | warp_14=`uv = (uv-0.5)*aspect.xy + 0.5 + (q21-0.5)/2; |
| 418 | warp_15=`float anz = 32; |
| 419 | warp_16=` |
| 420 | warp_17=`uv1 = mul ((uv-0.5),float2x2(q16,q15,-q15,q16)) + 0.5; |
| 421 | warp_18=`uv1 = lerp (uv1,uv,q20); |
| 422 | warp_19=` |
| 423 | warp_20=`uv1 += float2 (q25,q26); |
| 424 | warp_21=` |
| 425 | warp_22=`uv3 = uv1; |
| 426 | warp_23=`uv2 = uv1-0.5; |
| 427 | warp_24=`uv1 = float2 (4*length(uv2),(1+q20)*aTan2 (abs(uv2.y+q21/4),abs(uv2.x+q22/4))).yx; |
| 428 | warp_25=`uv1 = float2 (4*length(uv2),1*(1+q20)*(abs(uv2.y/(uv2.x+q21/4)))).yx; |
| 429 | warp_26=`uv1 = lerp (uv1,uv3,q23); |
| 430 | warp_27=` |
| 431 | warp_28=`arg = 8*(sat(8*abs(uv1.y-0.5)) * sat(8*abs(uv1.x-0.5-(q15*.7)))) ; |
| 432 | warp_29=`//arg = 64*(abs(uv1.y-0.5)); |
| 433 | warp_30=` |
| 434 | warp_31=`arg2 = pow (4/bass_att*length (cos((uv1 + float2((q7%16)/16,0))*3*3.1416)),2); |
| 435 | warp_32=` |
| 436 | warp_33=`//arg *= sat(arg2); |
| 437 | warp_34=`ret = 1 - pow(arg,2); |
| 438 | warp_35=`//ret = exp (-arg*2); |
| 439 | warp_36=` |
| 440 | warp_37=` |
| 441 | warp_38=` |
| 442 | warp_39=` |
| 443 | warp_40=`ret *= 2*normalize(tex2D (sampler_noise_hq,(uv1+q14/32)/16)); |
| 444 | warp_41=` |
| 445 | warp_42=` |
| 446 | warp_43=`float3 ret0 = lerp(GetPixel(uv_orig),GetBlur1(uv_orig),0.4); |
| 447 | warp_44=`//if (q20*q21 > 0.5) {ret = lerp (ret0,ret,q9);} |
| 448 | warp_45=`ret = 0; |
| 449 | warp_46=`} |
| 450 | comp_1=` |
| 451 | comp_2=`shader_body { |
| 452 | comp_3=`//uv += texsize.zw/2; |
| 453 | comp_4=`// uv = (uv-0.5)*aspect.yx + 0.5; |
| 454 | comp_5=`//uv = uv.yx; |
| 455 | comp_6=`//uv = 1- abs( frac((uv-.5)*2 * 0.5 ) * 2 - 1.0 ); // Eo.S. mirror code |
| 456 | comp_7=` |
| 457 | comp_8=`//uv = float2 (abs(uv.x-0.5), uv.y); |
| 458 | comp_9=`//uv = float2 (uv.x, abs(uv.y-0.5)*2); |
| 459 | comp_10=` |
| 460 | comp_11=`ret = lerp (GetPixel(uv), GetBlur1(uv)*2, 0.5); |
| 461 | comp_12=`//ret = max (GetPixel(uv),GetPixel(float2 (uv.x,1-uv.y)));; |
| 462 | comp_13=` |
| 463 | comp_14=`//ret = (ret)*lum(ret)*2; |
| 464 | comp_15=` |
| 465 | comp_16=`ret *= 1.5*normalize ((tex2D (sampler_noise_hq,(uv+q2/8)/16)) + 0); |
| 466 | comp_17=` |
| 467 | comp_18=` |
| 468 | comp_19=`//ret *= (hue_shader *5 -4)*2; |
| 469 | comp_20=`} |
| 470 | comp_21=` |